package net.service.impl;

import java.util.List;

import net.dao.HistogramDao;
import net.model.Histogram;
import net.service.HistogramManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class HistogramManagerImpl implements HistogramManager {

	@Autowired
	private HistogramDao histogramDao;

	@Transactional
	public List<Histogram> getAllHistogram() {
		return histogramDao.getAllHistogram();
	}

	@Transactional
	public void saveHistogram(Histogram histogram) {
		histogramDao.saveHistogram(histogram);

	}

}
